
package backstage.product;


public class ManagerLoginProcess {
    
    private String account;
    private String password;
    private String requestt ="";
    
    public String Login() throws Exception{
        if(account.equals("javadb") && password.equals("javadb"))
            return "loginsuccess";
        else
        {
            setRequestt("身為管理員，帳密要記好！ ");
            return "loginfail";
        }
    
}

    /**
     * @return the account
     */
    public String getAccount() {
        return account;
    }

    /**
     * @param account the account to set
     */
    public void setAccount(String account) {
        this.account = account;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the request
     */
    public String getRequestt() {
        return requestt;
    }

    /**
     * @param request the request to set
     */
    public void setRequestt(String request) {
        this.requestt = request;
    }

    
    
}
